﻿namespace TestTool.Proxies.Onvif
{
    using System;
    using System.CodeDom.Compiler;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Xml;
    using System.Xml.Serialization;

    [Serializable, GeneratedCode("svcutil", "3.0.4506.2152"), XmlType(Namespace="http://www.onvif.org/ver10/schema"), DebuggerStepThrough, DesignerCategory("code")]
    public class DNSInformation
    {
        private XmlAttribute[] anyAttrField;
        private IPAddress[] dNSFromDHCPField;
        private IPAddress[] dNSManualField;
        private DNSInformationExtension extensionField;
        private bool fromDHCPField;
        private string[] searchDomainField;

        [XmlAnyAttribute]
        public XmlAttribute[] AnyAttr
        {
            get
            {
                return this.anyAttrField;
            }
            set
            {
                this.anyAttrField = value;
            }
        }

        [XmlElement("DNSFromDHCP", Order=2)]
        public IPAddress[] DNSFromDHCP
        {
            get
            {
                return this.dNSFromDHCPField;
            }
            set
            {
                this.dNSFromDHCPField = value;
            }
        }

        [XmlElement("DNSManual", Order=3)]
        public IPAddress[] DNSManual
        {
            get
            {
                return this.dNSManualField;
            }
            set
            {
                this.dNSManualField = value;
            }
        }

        [XmlElement(Order=4)]
        public DNSInformationExtension Extension
        {
            get
            {
                return this.extensionField;
            }
            set
            {
                this.extensionField = value;
            }
        }

        [XmlElement(Order=0)]
        public bool FromDHCP
        {
            get
            {
                return this.fromDHCPField;
            }
            set
            {
                this.fromDHCPField = value;
            }
        }

        [XmlElement("SearchDomain", DataType="token", Order=1)]
        public string[] SearchDomain
        {
            get
            {
                return this.searchDomainField;
            }
            set
            {
                this.searchDomainField = value;
            }
        }
    }
}

